<?php
/**
 * index.php
 * @author: bangnd
 * Date: 2/13/13
 * Time: 12:42 PM
 */
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

// On dev display all errors
if(YII_DEBUG) {
    error_reporting(-1);
    ini_set('display_errors', true);
}

date_default_timezone_set('UTC');

chdir(dirname(__FILE__).'/../..');

$root=dirname(__FILE__).'/..';
$common=$root.'/../common';

require_once($common.'/lib/yii/yii.php');
$config=require('backend/config/main.php');


Yii::createWebApplication($config)->run();